<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">产品名称</label>
            <div class="layui-input-inline">
                <input name="pro_name" value="{:input('pro_name')}" placeholder="请输入产品名称" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">订单状态筛选</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="order_status">
                    <option selected value="">全部</option>
                    {foreach $order_status as $key=>$v}
                    {if $key.'' eq input('order_status')}
                    <option selected value="{$key}">{$v}</option>
                    {else}
                    <option value="{$key}">{$v}</option>
                    {/if}
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">支付时间</label>
            <div class="layui-input-inline">
                <input data-date-range name="pay_time" value="{:input('pay_time')}" placeholder="请选择支付时间" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>

</fieldset>

<script>window.form.render()</script>
